import { createContext, useEffect, useState } from 'react';

export type ArtistsSettledInContextType = {
    //当前显示得组件名
    showComponent: string;
    //设置显示哪个组件
    setShowComponent: (component: 'NotStationed' | 'ApplySettledIn') => any;
};

export const ArtistsSettledInContext = createContext<ArtistsSettledInContextType>(undefined);
const useArtistsSettledIn = () => {
    //控制显示哪个组件
    const [showComponent, setShowComponent] = useState('ApplySettledIn');
    return {
        showComponent,
        setShowComponent,
    };
};

export { useArtistsSettledIn };
